package com.frank.demo.aop.app;

import com.frank.demo.aop.annotation.Demo;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Frank on 2017/2/3.
 */
public class Run {


    public static void main(String[] args) throws Exception {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-aspect.xml");
        Run run = (Run) applicationContext.getBean("run");
        run.test("i'm frank");
    }

    @Demo
    public String test(String abc) {
        System.out.println(abc);
        return abc;
    }
}
